﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using System.IO;

namespace Q42.Wheels.Mvc.Paging.Example.Controllers
{
  public class CustomController : Controller
  {
    [Paging(DefaultSortColumn = "FullName", PageSize = 3)]
    public ActionResult Index()
    {
      DirectoryInfo dir = new DirectoryInfo("C://Windows");

      return View(dir.EnumerateFiles());
    }
  }
}
